package com.design.pattern.behaviour.strategy;

/**
 * @Author hanyuanlai
 * @Date 2022/7/12
 */
public class Test {
    public static void main(String[] args) {
        double total = 100.0;
        CashContext cashContext = new CashContext("discount");
        double result = cashContext.getResult(total);
        System.out.println(result);
    }
}
